package com.area.cth.anno;

import com.area.cth.validation.IsFreeValidation;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = {IsFreeValidation.class})
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface IsFree {
    String message() default "isFree参数必须是0或者1";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
